
<style>
    .xxpayPopupDiv .layui-form-label {
        width:15% !important;
        margin-left:1%;
    }
    .xxpayPopupDiv .layui-input-inline {
        width: 33% !important;
        margin-top: 0px;
    }
</style>
<div class="layui-fluid">
  <div class="layui-card">
    <div class="layui-tab layui-tab-brief">
      <div class="layui-tab-content">
          <form class="layui-form layui-form-pane" action="">
              <div class="layui-form-item">
                  <label class="layui-form-label">支付宝账号</label>
                  <div class="layui-input-inline">
                      <input type="text" id="alipayLoginId" disabled="disabled" class="layui-input">
                  </div>
                  <label class="layui-form-label">总收款(元)</label>
                  <div class="layui-input-inline">
                      <input type="text" id="totalMoney" disabled="disabled" class="layui-input">
                  </div>
              </div>
              <div class="layui-form-item">
                  <label class="layui-form-label">总收款限制(元)</label>
                  <div class="layui-input-inline">
                      <input type="text" id="totalMoneyLimit" disabled="disabled" class="layui-input">
                  </div>
                  <label class="layui-form-label">创建人ID</label>
                  <div class="layui-input-inline">
                      <input type="text" id="createUserId" disabled="disabled" class="layui-input">
                  </div>
              </div>
              <div class="layui-form-item">
                  <label class="layui-form-label">昨日收款(元)</label>
                  <div class="layui-input-inline">
                      <input type="text" id="yesterdayMoney" disabled="disabled" class="layui-input">
                  </div>
                  <label class="layui-form-label">今日收款(元)</label>
                  <div class="layui-input-inline">
                      <input type="text" id="todayMoney" disabled="disabled" class="layui-input">
                  </div>
              </div>
              <div class="layui-form-item">
                  <label class="layui-form-label">备注</label>
                  <div class="layui-input-inline">
                      <input type="text" id="remark" disabled="disabled" class="layui-input">
                  </div>
                  <label class="layui-form-label">状态</label>
                  <div class="layui-input-inline">
                      <input type="text" id="status" disabled="disabled" class="layui-input">
                  </div>
              </div>
              <div class="layui-form-item">
                  <label class="layui-form-label">创建时间</label>
                  <div class="layui-input-inline">
                      <input type="text" id="createTime" disabled="disabled" class="layui-input">
                  </div>
                  <label class="layui-form-label">更新时间</label>
                  <div class="layui-input-inline">
                      <input type="text" id="updateTime" disabled="disabled" class="layui-input">
                  </div>
              </div>
          </form>
      </div>
    </div>
  </div>
</div>

<script>
    layui.use(['admin','form'],function(){
        var form = layui.form
        ,$ = layui.$
        ,admin = layui.admin
        ,element = layui.element
        ,view = layui.view
        ,layer = layui.layer ;
        // 导航
        element.render('breadcrumb', 'breadcrumb');
        var id = view.getOpenParams('id');
        admin.req({
            type: 'get',
            url: layui.setter.baseUrl + '/alipayCashUser/get',
            data: {
                id : id
            },
            error: function(err){
                layer.alert(JSON.stringify(err.field), {
                    title: '错误提示'
                })
            },
            success: function(res){
                if(res.code == 0){
                    $('#userId').val(res.data.userId);
                    $('#alipayLoginId').val(res.data.alipayLoginId);
                    $('#totalMoney').val(res.data.totalMoney/100);
                    $('#totalMoneyLimit').val(res.data.totalMoneyLimit/100);
                    $('#yesterdayMoney').val(res.data.yesterdayMoney/100);
                    $('#todayMoney').val(res.data.todayMoney/100);
                    $('#remark').val(res.data.remark);
                    if(res.data.status == 0) {
                        $('#status').val("暂停分账");
                    }else if(res.data.status == 1) {
                        $('#status').val("正常分账");
                    }else if(res.data.status == 2) {
                        $('#status').val("金额限制分账");
                    }
                    if(res.data.createTime != "" && res.data.createTime != null) {
                        $('#createTime').val(layui.util.toDateString(res.data.createTime));
                    }
                    if(res.data.updateTime != "" && res.data.updateTime != null) {
                        $('#updateTime').val(layui.util.toDateString(res.data.updateTime));
                    }
                    $('#createUserId').val(res.data.createUserId);
                    form.render();
                }
            }
        })
    })
</script>